export type sortType = 'asc' | 'desc'
export type hobbyType = 0 | 1 | 2 | 3
export type dynamicStatus = 0 | 1 | 2

export type Login = {
  username: string
  password: string
}

export type Pagenate = {
  pageNum: number
  pageSize: number
}

export type UserDto = Pagenate & {
  username: string
  hobby: string
  status: number
}

export type ScenicDto = Pagenate & {
  spot: string
  region: string
  type: hobbyType
  sort: sortType
}

export type AddScenic = {
  spot: string
  addr: string
  desc: string
  detail: string
  type: hobbyType
  // 以下为非必填项
  url: string
  tel: string
  open_time: string
  visit_time: string
}

export type UpdateScenic = AddScenic & {
  id: number
}

export type DynamicDto = Pagenate & {
  username: string
  status: dynamicStatus
  sort: sortType
}

export type updatDynamicStatus = {
  id: number
  status: dynamicStatus
}
